package com.chinasofti.framework.net;

import java.util.HashMap;

import com.chinasofti.framework.data.Entity;
import com.chinasofti.framework.data.FieldType;

public class ResponseDataCategory extends Entity {

	private static HashMap<String, FieldType> m_fields;
	private static final String ENTITY_NAME = "ResponseDataCategory";
	private static final String KEY_FIELD = "";
	
	@Override
	protected void init() {
		if(m_fields == null) {
			m_fields = new HashMap<String, FieldType>();
			m_fields.put("name", new FieldType(String.class));
			m_fields.put("total", new FieldType(Integer.class));
		}
	}
	
	@Override
	public ResponseDataCategoryParser getParser() {
		return new ResponseDataCategoryParser();
	}

	@Override
	public HashMap<String, FieldType> getFieldTypes() {
		return m_fields;
	}

	@Override
	public String getKeyField() {
		return KEY_FIELD;
	}

	@Override
	public String getEntityName() {
		return ENTITY_NAME;
	}
}
